
<div class="page-signin">

    <div class="signin-header">
        <section class="logo text-center">
            <h1><a href="#/">{{main.brand}}</a></h1>
        </section>
    </div>

    <div class="signin-body">
        <div class="container">
            <div class="form-container">

                <form class="form-horizontal">
                    <fieldset>
                        <div class="form-group">
                            <div class="input-group input-group-first">
                                <span class="input-group-addon">
                                    <span class="ti-email"></span>
                                </span>
                                <input type="email"
                                       class="form-control input-lg"
                                       ng-model="user.username"
                                       placeholder="用户名"
                                        >
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="input-group">
                                <span class="input-group-addon">
                                    <span class="ti-lock"></span>
                                </span>
                                <input type="password"
                                       class="form-control input-lg"
                                       ng-model="user.password"
                                       placeholder="密码"
                                        >
                            </div>
                        </div>

                        <div class="divider divider-xl"></div>
                        <div class="form-group">


                            <!--    <div ng-app="" ng-controller="customersController">

                                    <ul>
                                      &lt;!&ndash;  <li ng-repeat="x in names">&ndash;&gt;
                            &lt;!&ndash;  {{ names}}&ndash;&gt;
                            &lt;!&ndash;      </li>&ndash;&gt;
                                </ul>

                            </div>-->

                            <script>
                                /* function customersController($scope,$http) {
                                 $scope.sayHello = function() {
                                 $http.get("http://localhost:8181/clubmanager/login" , {withCredentials: true})
                                 .success(function(data, status, headers) {$scope.names = response;
                                 console.log(data);
                                 console.log(status);
                                 console.log(headers);
                                 });

                                 }
                                 }*/
                                function customersController($scope,$http) {
                                    $scope.sayHello = function() {
                                        $http.get("http://localhost:8181/clubmanager/login" , {withCredentials: true})
                                                .success(function(data, status, headers) {
                                                    console.log(data);
                                                    console.log(status);
                                                    console.log(headers);
                                                });

                                    }
                                }

                            </script>

                            <div ng-controller="customersController">
                                <a ng-click="sayHello()" class="btn btn-primary btn-lg btn-block text-center">登 录</a>
                            </div>
                        </div>
                    </fieldset>
                </form>



                <div class="divider"></div>
                <section class="additional-info">
                    <p class="text-right">
                        <a href="#/pages/forgot-password">忘记密码?</a>
                        <span> | </span>
                        <a href="#/pages/signup">注册</a>
                    </p>
                </section>

            </div>
        </div>
    </div>

</div>